

package com.javaee.demov2.web.dto.ticket;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TicketUpdateDto {
    @ApiModelProperty(value = "票据id")
    Long ticketId;

    //此处可以添加数据校验

    @ApiModelProperty(value = "票据开具方")
    String issuer;

    @ApiModelProperty(value = "票据接收方")
    String receiver;

    @ApiModelProperty(value = "票据开具时间", example = "2024-12-01T12:00:00")
    LocalDateTime issueTime;

    @ApiModelProperty(value = "票据金额")
    BigDecimal amount;

    @ApiModelProperty(value = "票据描述")
    String description;

    @ApiModelProperty(value = "票据类型", example = "发票", allowableValues = "发票,收据,提单等")
    String type;

    @ApiModelProperty(value = "票据状态")
    Integer status;
}
